home *** CD-ROM | disk | FTP | other *** search
- // -----
- // VDL155.txt
- // Copyright 1996 Claris
- // -----
-
- //Find Dialog
- /************************** LOCALIZED STRING CONSTANTS BEGIN **************************************/
- /************************** LOCALIZED STRING CONSTANTS BEGIN **************************************/
- /************************** LOCALIZED STRING CONSTANTS BEGIN **************************************/
-
- //This section contains all localizable string constants for this VDL program. Be sure to
- //include the backslash character at the end of each line of a multi-line string, except for the last line.
- //You may also flatten multiline constants into a single line, if you prefer
-
- //Used on the Mac
- #define kLit1 "Replace"
- #define kLit3 "Done"
-
- #if Platform_Mac
- #define kLit7 "Find"
- #else
- #define kLit7 "&Find"
- #endif
-
- #define kLit8 "Partial Word"
- #define kLit9 "Entire Word"
- #define kLit12 "Case Sensitive"
- #define kLit13 "Search Backwards"
- #define kLit14 "Wrap Around"
-
- //Used on windows, must include '&' char for hotkey. Must be unique.
- #define kLit2 "Re&place"
- #define kLit4 "&Done"
- #define kLit5 "Replace &All"
- #define kLit6 "Repla&ce and Find"
- #define kLit10 "Partia&l Word"
- #define kLit11 "&Entire Word"
- #define kLit15 "Case &Sensitive"
- #define kLit16 "Search &Backwards"
- #define kLit17 "&Wrap Around"
-
- #define kLit18 "Fi&nd:"
-
- #define kLit19 "&Replace With:"
-
- //Localized Fonts
-
- //Font used for the find and replace edit text
- #define kEditTextFont Font = EditFont
-
- //Font used for the controls
- #define kControlFont Font = SystemFont
-
-
-
- /************************** LOCALIZED STRING CONSTANTS END **************************************/
- /************************** LOCALIZED STRING CONSTANTS END **************************************/
- /************************** LOCALIZED STRING CONSTANTS END **************************************/
-
-
-
- /************************** LOCALIZED NUMERICAL CONSTANTS BEGIN **************************************/
- /************************** LOCALIZED NUMERICAL CONSTANTS BEGIN **************************************/
- /************************** LOCALIZED NUMERICAL CONSTANTS BEGIN **************************************/
-
- //This section contains integer constants that are used to format this VDL program.
- //These are localizable - they only need to be changed if the localized strings
- //are sufficiently longer than the US strings. Localize the strings first, then the constants.
-
- //Width of the find button
- #define kFindButtonWidth 75
-
- //Widths of all the options buttons in the middle of the dialog
- #define kOptionsButtonsWidth 150
-
- //Offset to the left of the first column of options buttons
- #define kOptionsButtonsHOffset 108
-
- //Width of the "Find:" and "Replace With:" labels. The edit text takes its width from the
- //dialog, which is computed automatically.
- #define kFindLabelWidth 100
-
- /************************** LOCALIZED NUMERICAL CONSTANTS END **************************************/
- /************************** LOCALIZED NUMERICAL CONSTANTS END **************************************/
- /************************** LOCALIZED NUMERICAL CONSTANTS END **************************************/
-
- //No further localizable data past this point
-
- /************************** END LOCALIZABLE DATA ***************************************************/
- /************************** END LOCALIZABLE DATA ***************************************************/
- /************************** END LOCALIZABLE DATA ***************************************************/
-
-
- #if Platform_Mac
- #define dlogBack BackColor = {65535, 65535, 65535}
- #else
- #define dlogBack BackColor = Dialog
- #endif
-
- #define EH EnabledHelpString =
-
-
- #if Platform_Mac
- Define(ReplaceButton)
- CancelButton( kLit1, 1167, "None", /*Width = 88,*/
- ExtraCommand = 33906 ); // Command-R
- #else
- Define(ReplaceButton)
- CancelButton(kLit2, 1167, "None", /* Width = 88*/);
- #endif
-
- #if Platform_Mac
- Define(CancelFindButton)
- CancelButton(kLit3, 1070, "None", /*Width = 62,*/ ExtraCommand = 314);
- #else
- Define(CancelFindButton)
- CancelButton(kLit4, 1070, "None", /*Width = 62*/);
- #endif
-
-
- Define(Divider)
- Margin(6,0,3,0,Width = UseParent, dlogBack)
- VList(Width = UseParent)
- {
- Spacer(Width = 0, Height = 4, ScaleV);
- Spacer(Height = 1, Width = UseParent, BackColor = {20000,20000,20000});
- Spacer(Height = 1, Width = UseParent, BackColor = {62000, 62000, 62000});
- Spacer(Width = 0, Height = 4, ScaleV);
- }
-
-
- DeclareNamedStatement("Buttons")
- HList(dlogBack)
- {
- Call(ReplaceButton);
-
- #if Platform_Mac
- Spacer(Width = 1, Height = 0);
- #else
- Spacer(Width = 5, Height = 0);
- #endif
-
- CancelButton(kLit5, 1168, "None" /*, Width = 88*/);
-
- #if Platform_Mac
- Spacer(Width = 1, Height = 0);
- #else
- Spacer(Width = 5, Height = 0);
- #endif
-
- CancelButton(kLit6, 1169, "None" /*, Width = 126 */);
- Spacer(Width = 8, Height = 0);
- Call(CancelFindButton);
- Spacer(Width = 3, Height = 0);
- FramedButton(kLit7, 1071, "None" , Width = kFindButtonWidth );
- } // HList(dlogBack)
-
-
- DeclareNamedStatement("Options")
- HList(Width = UseParent, dlogBack)
- {
- Spacer(Width = kOptionsButtonsHOffset, Height = 0);
- Switch (docIsRoman)
- {
- case 1:
- VList()
- {
- #if Platform_Mac
- //Radio buttons
- WidowRadioButton(kLit8, searchStringType, 0, Width = kOptionsButtonsWidth, Height = 18, kControlFont);
- Spacer(Height = 2);
- WidowRadioButton(kLit9, searchStringType,1, Width = kOptionsButtonsWidth, Height = 18, kControlFont);
- #else
- //Radio buttons
- RadioButton(kLit10, searchStringType, 0, Width = kOptionsButtonsWidth, Height = 18, kControlFont);
- Spacer(Height = 2);
- RadioButton(kLit11, searchStringType,1, Width = kOptionsButtonsWidth, Height = 18, kControlFont);
- #endif
- }
-
- case 0:
- /* For non-roman documents, we disable the partial/entire word controls.
- * "26665" is a made-up CommandCode which, presumably, will never
- * be bound.
- */
- VList()
- {
- #if Platform_Mac
- //Radio buttons
- WidowRadioButton(kLit8, 26665, 0, Width = kOptionsButtonsWidth, Height = 18, kControlFont);
- Spacer(Height = 2);
- WidowRadioButton(kLit9, 26665,1, Width = kOptionsButtonsWidth, Height = 18, kControlFont);
- #else
- //Radio buttons
- RadioButton(kLit10, 26665, 0, Width = kOptionsButtonsWidth, Height = 18, kControlFont);
- Spacer(Height = 2);
- RadioButton(kLit11, 26665,1, Width = kOptionsButtonsWidth, Height = 18, kControlFont);
- #endif
- }
- } // Switch (docIsRoman)
- //Spacer(Width = 100, Height = 0);
- VList()
- {
- #if Platform_Mac
- WidowCheckBox(kLit12, caseSensitive,Width = kOptionsButtonsWidth, Height = 18, kControlFont);
- Spacer(Height = 1);
- WidowCheckBox(kLit13, searchBackwards,Width = kOptionsButtonsWidth, Height = 18, kControlFont);
- Spacer(Height = 1);
- WidowCheckBox(kLit14, wrapAround,Width = kOptionsButtonsWidth, Height = 18, kControlFont);
- #else
- CheckBox(kLit15, caseSensitive,Width = kOptionsButtonsWidth, Height = 18, kControlFont);
- Spacer(Height = 1);
- CheckBox(kLit16, searchBackwards,Width = kOptionsButtonsWidth, Height = 18, kControlFont);
- Spacer(Height = 1);
- CheckBox(kLit17, wrapAround,Width = kOptionsButtonsWidth, Height = 18, kControlFont);
- #endif
- }
- Spacer(Width = 10, Height = 0);
- Spacer(Width = UseParent, Height = 0);
- }
-
- Margin(4, 0, 4, 2, dlogBack)
- VList()
- {
- Spacer(Width = 0, Height = 5);
- HList(Width = UseParent)
- {
- Tag(FindText)
- EditText( FindText, kEditTextFont, Width = UseParent,
- Label = kLit18,
- LabelAlignment = Right,
- LabelWidth = kFindLabelWidth,
- /*DropOnReturn, DropOnEnter, */ NoSmartQuotes,
- BackColor = {65535, 65535, 65535});
-
-
- Spacer(Width = 5, Height = 0);
- }
- Spacer(Width = 0, Height = 5);
- HList(Width = UseParent)
- {
- Tag(ReplaceText)
- EditText( ReplaceText, kEditTextFont, Width = UseParent,
- Label = kLit19,
- LabelAlignment = Right,
- LabelWidth = kFindLabelWidth,
- /*DropOnReturn, DropOnEnter, */ NoSmartQuotes,
- BackColor = White);
-
- Spacer(Width = 5, Height = 0);
- }
- Spacer(Width = 0, Height = 1);
-
- Call(Divider);
- IncludeNamedStatement("Options");
- Call(Divider);
-
- #if Platform_Win
- Spacer(Width = 0, Height = 5, ScaleV);
- #endif
-
- IncludeNamedStatement("Buttons");
-
- #if Platform_Win
- Spacer(Width = 0, Height = 5, ScaleV);
- #endif
- } // VList
-
-